package com.finance.capacity.capacitySummary.request;

import com.finance.framework.lang.PageReq;
import com.finance.util.DateUtil;
import lombok.Data;

import java.text.ParseException;
import java.util.Date;

/**
 * @Author: gly
 * @Date: Created in 2017-09-04
 */
@Data
public class CapSummaryReq extends PageReq {

    private String provinceId;

    private  String cityId;

    private  String siteId;

    private  String statusStr;

    private  String keyWords;

    private String beginTime;

    private String endTime;


    public Date convertStartTime() throws ParseException {
        if(this.beginTime!=null){
            return DateUtil.str2date(this.beginTime);
        }
        return null;
    }
    public Date convertEndTime() throws ParseException {
        if(this.endTime!=null){
            return DateUtil.str2date(this.endTime);
        }
        return null;
    }
}
